using UnityEngine;
using UnityEngine.UI;

public class UIClick : MonoBehaviour
{

    public Animator animator1;
    public Button btn_1;

    public Button btn_2;

    public Button btn_3;


    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        btn_1.onClick.AddListener(ClickError);
        btn_2.onClick.AddListener(ClickReset);
        btn_3.onClick.AddListener(ClickReset3);
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void ClickError()
    {
        animator1.SetTrigger("Error");
        Debug.Log("Error");
    }

    public void ClickReset()
    {
        animator1.SetTrigger("Reset");
        Debug.Log("Reset");
    }

    public void ClickReset3()
    {
    }
}
